package com.siwei.mes.service;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.ExperimentDetail;

import java.util.List;

/**
 * 试验台账json详情(ExperimentDetail)表服务接口
 *
 * @author linzi
 * @since 2023-12-27 23:30:45
 */
public interface ExperimentDetailService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    Long create(ExperimentDetail entity);

    /**
     * 修改
     *
     * @param entity
     */
    void update(ExperimentDetail entity);

    /**
     * 删除
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<ExperimentDetail> getPage(PageQuery<ExperimentDetail, ExperimentDetail> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ExperimentDetail loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentDetail> getAll(ExperimentDetail entity);
}
